﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using BarcodeProductManagement.Models;

namespace BarcodeProductManagement.Controllers
{
    public class MaterialManagementController : Controller
    {
        public ActionResult ViewMaterialList()
        {
            return View();
        }

        [AcceptVerbs(HttpVerbs.Get)]
        public ActionResult ModifyMaterial()
        {
            return View();
        }

        [AcceptVerbs(HttpVerbs.Post)]
        public RedirectToRouteResult ModifyMaterial(MaterialModel model)
        {
            return RedirectToAction("ViewMaterialList", "MaterialManagement");
        }

        [AcceptVerbs(HttpVerbs.Get)]
        public ActionResult AddMaterial()
        {
            return View();
        }

        [AcceptVerbs(HttpVerbs.Post)]
        public RedirectToRouteResult AddMaterial(MaterialModel model)
        {
            return RedirectToAction("ViewMaterialList", "MaterialManagement");
        }

        /// <summary>
        /// Manager view pending material list which submitted by employe
        /// </summary>
        /// <returns></returns>
        public ActionResult ViewPendingMaterialList()
        {
            return View();
        }

        /// <summary>
        /// Manager view one pending material detailed information and approver/deny this materail
        /// </summary>
        /// <returns></returns>
        public ActionResult ApprovePendingMaterial()
        {
            return View();
        }

        /// <summary>
        /// Import material list by excel file
        /// </summary>
        /// <returns></returns>
        public ActionResult ImportMaterialList()
        {
            return View();
        }
    }
}
